﻿
using System.Collections.Generic;
namespace KouDai.Phone.Helper
{
    public class Constants
    {
        #region CommonHostUrl

#if DEBUG
        public const string BaseUrl = "http://test.m.koudai.com:9001/";
        public const string Host = "http://api.m.koudai.com/";//BaseUrl + "ishopping/";
        public const string VersionUrl = "http://test.m.koudai.com/update/";
        public const string AccountLoginUrl = "https://login.koudai.com/mobile";
        public const string ADUrl = "http://test.m.koudai.com/";
#else
        public const string BaseUrl = "http://api.m.koudai.com/";
        public const string Host = BaseUrl;
        public const string VersionUrl = "http://api2.m.koudai.com/update/";
        public const string AccountLoginUrl = "https://login.koudai.com/mobile";
        public const string ADUrl = "http://api2.m.koudai.com/";//http://test.m.koudai.com/
#endif

        #endregion

        public const string GetShopNewStatus = "getFollowShopsNewStatus.do";            //店铺上新 new 图标
        public const string GetNewArrival = "newArrival.do";                            //店铺上新
        public const string GetGoodShop = "listAllGroupCombines.do?";                   //好店首页
        public const string GetGoodShopList = "getAppsByGroup_v2.do";                   //好店店铺列表
        public const string GetOffLineOrPreferences = "getOffLineOrPreferences.do";     //获取商品的是否下架和特惠状态
        public const string GetProductComments = "getItemComments.do";                  //商品评论接口
        public const string GetProductDetails = "getItemInfo_v2.do";                    //获取商品详情
        public const string QueryShopDetail = "queryIShoppingSimple.do";                //店铺详情
        public const string ImageWall = "queryRecommendItems.do";                       //图片墙
        public const string Hotv2 = "listCommodityKind_v2.do";                          //2.0热门
        public const string Hotv3 = "listCommodityKind_v3.do";                          //3.0热门
        public const string HotList = "dailyTop.do";                                    //热榜
        public const string Search = "categorySearch.do";                               //搜索接口
        public const string GetPreferenceNumber = "getPreferenceNum.do";                //获取特惠号
        public const string UpdageNumberReceived = "handlePreferenceFetchTimes.do";     //特惠号领取次数
        public const string FeedBack = "addFeedBack.do";                                //反馈
        public const string Share = "shareStart.do";                                    //分享
        public const string SearchCategory = "listSearchCategories.do";                 //搜索分类接口
        public const string AD = "ad/";                                                 //广告接口
        public const string ListTheme = "listThemes.do";                                //主题街
        public const string MainTile = "getDynSpin.do";                                 //应用程序瓷贴

        #region UDC

        public const string AnonymousRegist = "anonymousRegist.do";        //匿名用户注册
        //public const string UnBindUser = "unbindUser.do";
        public const string BindUser = "bind2.do";                         //绑定用户
        //public const string AddProduct = "addProduct2.do";               //添加收藏商品
        public const string DelProduct = "delProduct.do";                  //删除收藏商品
        public const string CheckProduct = "checkProduct.do";              //检查收藏商品是否更新
        public const string GetFavoritesProducts = "getProducts.do";       //获取收藏商品
        public const string AddShop = "uploadStoreShops.do";               //添加收藏店铺
        public const string DelShop = "delShop.do";                        //删除收藏店铺
        public const string CheckShop = "checkShop.do";                    //检查收藏店铺是否更新
        public const string GetShops = "getShops.do";                      //获取收藏店铺
        public const string SynchFavoritesProduct = "syncCollection.do";   //同步收藏商品
        public const string GetPerferenceIds = "getPerferenceIds.do";
        public const string GetBuyScript = "getBuyScript.do";              //获取购买页面注入脚本
        public const string GetCollectShopAndProductNum = "getCollectShopAndProductNum.do";     //获取店铺和商品关注数
        public const string GetConfig = "getConfig.do";                     //服务端控制客户端配置接口
        public const string DetailBack = "detailBack.do";                   //查看宝贝详情停留时间上报
        public const string GetBasicUserInfo = "getBasicUserInfo.do ";      //获取用户基本信息


        #region 我的街
        public const string SubmitUserBehavior = "log.do";                      //用户行为信息上报
        //public const string YellowDiamond = "isUserYellowDiamond.do";           //上报淘宝黄钻买家
        //public const string UploadUserTestInfo = "uploadUserTestInfo.do";       //上传用户测试问卷答案
        public const string GetMyStreetProducts = "getMyStreetProducts.do";     //获取我的街商品信息
        public const string CheckUserActive = "checkUserActive.do";             //查询用户的激活状态
        public const string UploadStoreProducts = "uploadStoreProducts.do";     //上传用户收藏的商品
        public const string UploadStoreShops = "uploadStoreShops.do";           //上传用户收藏的店铺
        public const string QuestionnaireUrl = "test/start.do";                 //用户调查接口

        #endregion

        #endregion

        #region ImageWallInfo
        public const int ImageSize = 36;
        #endregion

        #region Statistics
        public const string Channel = "Channel";
        public const string Build = "Build";
        public const string StatisticFileName = "InitInfo/Statistics.xml";
        #endregion

        #region TileToken
        public const string shaonvTile = "";
        #endregion

        #region CommonHeader

        public static Dictionary<string, string> AdditionalHeaders
        {
            get
            {
                Dictionary<string, string> additionalHeaders = new Dictionary<string, string>();
                additionalHeaders.Add("encryType", "3");
                additionalHeaders.Add("gzipType", "0");
                additionalHeaders.Add("Accept-Encoding", "geili-zip");
                additionalHeaders.Add("Content-Encoding", "geili-zip");

                return additionalHeaders;
            }
        }

        public static Dictionary<string, object> HeaderParas
        {
            get
            {
                Dictionary<string, object> headerDic = new Dictionary<string, object>();
                headerDic.Add("apiv", "7");
                headerDic.Add("brand", StatisticsHelper.Brand);
                headerDic.Add("mid", StatisticsHelper.Mid);
                headerDic.Add("w", StatisticsHelper.W);
                headerDic.Add("h", StatisticsHelper.H);
                headerDic.Add("imei", StatisticsHelper.UniqueIdS);
                headerDic.Add("mac", StatisticsHelper.UniqueIdS);
                headerDic.Add("udid", StatisticsHelper.UniqueIdS);
                headerDic.Add("platform", StatisticsHelper.Platform);
                headerDic.Add("os", StatisticsHelper.OS);
                headerDic.Add("version", StatisticsHelper.Version);
                headerDic.Add("channel", StatisticsHelper.Channel);
                headerDic.Add("build", StatisticsHelper.Build);
                return headerDic;
            }
        }
        #endregion
    }
}
